/**
 * Created by Administrator on 2017/6/13.
 */
angular
    .module('myApp', [])
    .factory('Name', function () {
        return {name: ''};
    })
    .controller('MyController1', function ($scope, Name) {
        $scope.Data = Name;
    })
    .controller('MyController2', function ($scope, Name) {
        $scope.Data = Name;
    });